package com.yc.jpyy.base.util;

public class Util {

	
	public static boolean isNumeric(String str){
		  for (int i = 0; i < str.length(); i++){
		   System.out.println(str.charAt(i));
		   if (!Character.isDigit(str.charAt(i))){
		    return false;
		   }
		  }
		  return true;
		 }
	
	
	/**
	 * 获取ObjectString
	 * @param obj
	 * @return
	 */
	public static String getObjectString(Object obj){
		
		if (obj == null){
			return "0";
		}else{
			return obj.toString();
		}
		
		
	}

}
